<ul class="wi-tree">
    <li ng-repeat="data in vm._data | orderBy : conf.orderby">
        <div class="wi-tree-item" ng-class="{'wi-tree-current':data['__current']}"
             ng-click="handler.clickRow(data)"
             ng-mouseenter="handler.toggleHover(data)" ng-mouseleave="handler.toggleHover(data)">
            <span class="wi-tree-lines" bind-html-unsafe="data['__lines'].slice(0,-1).join('')">
            </span><span ng-if="!data['children']"
                         class="wi-tree-pre wi-tree-node-f">
            </span><span ng-if="!!data['children']"
                  class="wi-tree-pre wi-tree-node{{data['__closed']?'':'-o'}}"
                  ng-click="handler.toggleNode($event,data)">
            </span><span ng-if="conf.multiselect"
                  class="wi-tree-pre wi-tree-check"
                  ng-class="{'wi-tree-check-semi':data['__semi'],'wi-tree-check-all':data['__selected']&&!data['__semi']}">
            </span><span ng-if="data['__loading']"
                class="wi-tree-pre wi-tree-loading">
            </span><span ng-if="!data['__loading']"
                class="wi-tree-pre {{data['cls']||(data['children']?
                    conf.pCls||'wi-tree-folder'+(data['__closed']?'':'-o'):
                    conf.cCls)}}"><!-- 优先级：数据项中 cls，根节点定义的 pCls 或 cCls，默认图标 -->
            </span><span>
                {{data[conf.labelfield]}}
            </span><span ng-if="conf.itemrenderer"
                  ng-include src="conf.itemrenderer"></span>
        </div>
        <wi-tree ng-if="data['children'] && !data['__closed']"
                 dataProvider="data['children']">
        </wi-tree>
    </li>
</ul>